home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / misc / dateheader.lha / DateHeader.doc < prev    next >
Encoding:
Text File  |  1993-02-26  |  1.6 KB  |  55 lines

  1.              DateHeader
  2.  
  3.        Automated Date Header for C
  4.  
  5.    ----------------------------------------------------------------
  6.  
  7.    For AmigaDOS 1.3, 2.04, or 3.0.
  8.  
  9.    This is a very simple program that produces a small include
  10.    file that contains the current date in the format specified
  11.    by the Amiga User Interface Style Guide. The exact format of
  12.    the include file is as follows:
  13.  
  14.     /********************************************
  15.      date.h
  16.      Automatic Date Header
  17.      Created by DateHeader, a program by
  18.      Russ Steffen.
  19.     ********************************************/
  20.  
  21.     #define __AMIGADATE__ "(25.02.93)"
  22.  
  23.     #define __CREATION_DATE__ "Thursday, 25 February 1993"
  24.  
  25.    So, to create an automatically updated version string in your
  26.    programs, use something like the following:
  27.  
  28.    #include <date.h>
  29.    const char vers[] = "MyProgram Vxx.x " __AMIGADATE__
  30.  
  31.     INSTALLATION
  32.  
  33.    Installing DateHeader is trivial. Just copy DateHeader into C:, or
  34.    wherever you like. Then, add the line:
  35.  
  36.      DateHeader >ENV:date.h
  37.  
  38.    to your startup-sequence or User-Startup. That's it. Now, every time
  39.    you boot, the header file for the current day will be created. Now,
  40.    all you have to do is make sure that your compiler can find the header
  41.    file.
  42.  
  43.    One last item, for people who leave their machines on all the time. If
  44.    you are running a cron-type utility, I suggest adding DateHeader to your
  45.    crontab file to run nightly, thus insureing that the DateHeader is always
  46.    accurate. Or, you can just add it to your makefiles.
  47.  
  48.  
  49. Coded By:
  50. Russ Steffen
  51.  
  52. EMail -- STEFFENR@UWSTOUT.EDU
  53.  
  54. Based partially on the program MakeDayDateH by Mksa.
  55.